import { defineStore } from "pinia";

export const useUserStore = defineStore({
  id: "host-user",
  state: () => ({
    // 用户信息
    UserInfo: {},
  }),
  getters: {
    // 用户信息
    UserInfoGet: (state) => state.UserInfo,
  },
  actions: {
    // Set RouteName
    async setUserInfo(UserInfo) {
      this.UserInfo = UserInfo;
    },
  },
});
